﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yxinmt.Entity
{
    public class GridWidthHeight
    {
        public bool IsStar { get; set; }
        public double Width { get; set; }
        public double Height { get; set; }

        public GridWidthHeight(double width, bool isStar)
        {
            if (width == 0) { width = 1; isStar = true; }
            Width = width;
            IsStar = isStar;
        }

        public GridWidthHeight(double height, bool isStar, bool isHeight)
        {
            if (height == 0) { height = 1; isStar = true; }
            if (isHeight) Height = height; else Width = height;
            IsStar = isStar;
        }
    }
}
